# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-loopback
_pkgname=Flask-Loopback
pkgver=1.2.3
pkgrel=2
pkgdesc="A library to create requests without network connection"
url="https://pypi.python.org/pypi/Flask-Loopback"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-flask py3-requests py3-urlobject"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-flask-loopback" # Backwards compatibility
provides="py-flask-loopback=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a206c53026645d7e7bfd168b05cce375780c4568292381269eb7bd05a2486a0c12353554509b54ec2fd46339cb9882194992bea26165eca691f5e58dedc96954  Flask-Loopback-1.2.3.tar.gz"
